#include <QApplication>
#include <QFile>

#include "mainwindow.h"

//设置皮肤样式
void setStyle(const QString &styleName) {
  QFile file(QString(":/resource/%1.qss").arg(styleName));
  file.open(QFile::ReadOnly);
  QString qss = QLatin1String(file.readAll());
  qApp->setStyleSheet(qss);
}

int main(int argc, char *argv[]) {
  QApplication a(argc, argv);

  // 設置樣式風格
  setStyle("style_01");
  MainWindow w;
  w.show();
  return a.exec();
}
